export default {
  getTableData: () => {
    return {
      code: 200,
      data: {
        tableData: [
          { name: "1号", todayBuy: 500, monthBuy: 5000, totalBuy: 50000 },
          { name: "2号", todayBuy: 500, monthBuy: 5000, totalBuy: 50000 },
          { name: "3号", todayBuy: 500, monthBuy: 5000, totalBuy: 50000 },
          { name: "4号", todayBuy: 500, monthBuy: 5000, totalBuy: 50000,},
          { name: "5号", todayBuy: 500, monthBuy: 5000, totalBuy: 50000,},
        ],
      },
    };
  },
  getCountData: () => {
    return {
      code: 200,
      data: {
        countData: [
          { name: "今日支付订单", value: 1234, icon: "SuccessFilled", color: "#2ec7c9" },
          { name: "今日收藏订单", value: 234, icon: "StarFilled", color: "#ffb980" },
          { name: "今日未支付订单", value: 123, icon: "GoodsFilled", color: "#5a1e1f" },
          { name: "本月支付订单", value: 1234, icon: "Document", color: "#9b59b6" },
          { name: "本月收藏订单", value: 234, icon: "Collection", color: "#2ecc71" },
          { name: "本月未支付订单", value: 123, icon: "DocumentRemove", color: "#34495e" },
        ]
      }
    };
  },
  getChartData: () => {
  return {
    code: 200,
    data: {
      orderData: {
        date: [
          "2019-10-01",
          "2019-10-02",
          "2019-10-03",
          "2019-10-04",
          "2019-10-05",
          "2019-10-06",
          "2019-10-07"
        ],
        data: [
          {
            "1号": 3839,
            "2号": 1423,
            "3号": 4965,
            "4号": 3334,
            "5号": 2820,
          },
          {
            "1号": 3560,
            "2号": 2099,
            "3号": 3192,
            "4号": 4210,
            "5号": 1283,
          },
          {
            "1号": 3121,
            "2号": 1789,
            "3号": 2630,
            "4号": 3210,
            "5号": 1234,
          },
          {
            "1号": 2789,
            "2号": 1234,
            "3号": 2310,
            "4号": 3210,
            "5号": 1234,
          },
          {
            "1号": 2345,
            "2号": 1234,
            "3号": 3210,
            "4号": 3210,
            "5号": 1234,
          },
          {
            "1号": 4321,
            "2号": 3210,
            "3号": 2109,
            "4号": 1098,
            "5号": 4152,
          },
          {
            "1号": 4999,
            "2号": 1582,
            "3号": 3549,
            "4号": 2589,
            "5号": 4592,
          },
        ],
      },
      videoData:[
        { name: "1号", value: 1234 },
        { name: "2号", value: 2345 },
        { name: "3号", value: 3456 },
        { name: "4号", value: 4567 },
        { name: "5号", value: 5678 },
      ],
      userData:[
        {date:"周一",new:5,active:200},
        {date:"周二",new:10,active:300},
        {date:"周三",new:15,active:400},
        {date:"周四",new:20,active:500},
        {date:"周五",new:25,active:600},
        {date:"周六",new:30,active:700},
        {date:"周日",new:35,active:800},
        ],
      }
    };
  },
  // 添加getUserData方法
  getUserData: () => {
    return {
      code: 200,
      data: {
        // 这里可以添加用户相关的数据
        userInfo: {
          name: "Admin",
          role: "超级管理员",
          lastLoginTime: "2021-09-01 10:00:00",
          lastLoginLocation: "惠州"
        }
      }
    };
  }
};